Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 5 - Printing Functions for Message Overrides / Printing Functions Reference
Functions / Managing Paper Trays


GXCountTrays

You can use the GXCountTrays function to determine the number of paper trays that are available for your printing extension or printer driver to use.

OSErr GXCountTrays (gxTrayIndex *numTrays);
numTrays
A pointer to a value that, on return, contains the number of paper trays that are currently available on the printer.
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
The GXCountTrays function calls the GXFetchTaggedData function to retrieve
the number of paper trays that are currently available on the printer. You call the GXCountTrays function to determine how many trays there are when you need to loop through the paper trays to look for information.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.
SEE ALSO
The GXFetchTaggedData function is described in Inside Macintosh: QuickDraw GX Environment and Utilities.

You can read about managing paper trays in the section "Managing Paper Trays and Their Paper Types" beginning on page 5-5.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help